package com.gopay.common.domain.bank.boc.bcdl.checkin.res;

import java.io.Serializable;

import com.gopay.common.domain.bank.boc.bcdl.ResResultStatus;
import com.gopay.common.domain.bank.boc.bcdl.TransResBaseBody;
import com.thoughtworks.xstream.annotations.XStreamAlias;

@XStreamAlias("bocb2e")
public class TransResCheckInBody extends TransResBaseBody {
	/**
	 * 
	 */
	private static final long serialVersionUID = -225911685482962452L;
	@XStreamAlias("trans") 
	private Inner trans;
	
	public Inner getTrans() {
		return trans;
	}

	public void setTrans(Inner trans) {
		this.trans = trans;
	}
	
	@Override
	public ResResultStatus getResResultStatus() {
		// TODO Auto-generated method stub
		return trans.getRes().getStatus();
	}
	
	public static class Inner implements Serializable{
		/**
		 * 
		 */
		private static final long serialVersionUID = -5776246135008418171L;
		@XStreamAlias("trn-b2e0001-rs")
		private TransResCheckIn res;

		public TransResCheckIn getRes() {
			return res;
		}

		public void setRes(TransResCheckIn res) {
			this.res = res;
		}
	}

}
